/**
 * 
 */
package org.cuatrovientos.imc;

import java.util.Scanner;

/**
 * @author Beatriz
 *
 */
public class Imc {

	private static Scanner reader;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
	float weight = 0;
	float height =0 ;
	double imc = 0;
	String line = "";
	
	Scanner reader = new Scanner (System.in);
	
	System.out.print("Enter your weight (kg): ");
	line = reader.nextLine();
	weight = Integer.parseInt(line);
	
	System.out.print("Enter your height (cm): ");
	line = reader.nextLine();
	height = Integer.parseInt(line);
	
	imc = weight/((height/100)*(height/100));
	
	
	if (imc < 16) {
		System.out.println("Eat more)");
	}
	if (imc > 16 && imc <= 25) {
		System.out.println("You are fantastic");
	}
	if (imc >= 25 && imc< 30){
		System.out.println("Control your wheigt");
	}
	if (imc >= 30){
		System.out.println("You are dangerous");
	}
		}
	}
		
	
	

	


